import Vue from 'vue'
import { mapMutations } from 'vuex'


var util = {
    install(Vue){
        Vue.prototype.util={
            mainMessage:(type,message,vm)=>{
                vm.$store.commit('main/mainAlertToggle',{
                    type:type,
                    title:message
                });
            vm.$store.commit('alertIncrement');
            }
        }
    }
}

Vue.use(util);

